﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderReturnsList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Shop.Order.OrderReturnsList" %>

<%@ Import Namespace ="ZLCMS.Business.Util" %>
<%@ Import Namespace="ZLCMS.Commands.User.Util" %>

<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>

<form id="pageForm" method="post" class="pageForm" runat="Server">
<%=_framePage.TabInfoHtml()%>

<div class="pageHeader">
	<div class="searchBar">
		<table class="searchContent">
		<tr>
			<td>
			    <span>订 单 号&nbsp;</span>
				<asp:TextBox ID="orderno" runat="server" cond="orderno"></asp:TextBox>&nbsp;&nbsp;
			</td>
			<td>
			    <span>商品名称&nbsp;</span>
			    <asp:TextBox ID="pName" runat="server" cond="pname"></asp:TextBox>&nbsp;&nbsp;
			</td>

			<td>
			    <span>记录时间&nbsp;</span>
				<asp:TextBox ID="record" runat="server" class="date" format="yyyy-MM-dd" readonly="true" cond="record"></asp:TextBox>
			    <%--<asp:TextBox ID="end" class="date" format="yyyy-MM-dd" readonly="true" runat="server" cond="end"></asp:TextBox>--%>
			</td>

            <td>
			    <span>订单退货类型&nbsp;</span>
				<asp:dropdownlist runat="server" ID="returntype" cond="returntype"></asp:dropdownlist>
			    <%--<asp:TextBox ID="end" class="date" format="yyyy-MM-dd" readonly="true" runat="server" cond="end"></asp:TextBox>--%>
			</td>
		</tr>

		<tr>
			<td colspan="9">
			    <span>退货单状态&nbsp;</span>
				<asp:dropdownlist runat="server" ID="confirm" cond="confirm"></asp:dropdownlist>&nbsp;&nbsp;
				<asp:dropdownlist runat="server" ID="process" cond="process"></asp:dropdownlist>&nbsp;&nbsp;
				<asp:dropdownlist runat="server" ID="finish" cond="finish"></asp:dropdownlist>&nbsp;&nbsp;
				<asp:dropdownlist runat="server" ID="cancel" cond="cancel"></asp:dropdownlist>&nbsp;&nbsp;
			</td>
		</tr>
		</table>
		
	    <div class="subBar">
			<ul>
			<li>
			    <a class="buttonActive" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.redirect(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>查询</span></a>
			</li>
<%--            <li>
			    <a class="button" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.exportFile(this);" 
			    target="dwzExport" rel="exportexcel" title="导出EXCEL"><span>导出EXCEL</span></a>
			</li>--%>
			</ul>
	    </div>
	</div>
</div>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
         <% if (AuthUtil.CheckAuthorization("ORDER_RETURN_MAN", "DELETE"))
               { %>
            <li><a class="delete" href='/SystemManage/Basics/shop/orderReturns/OrderReturnsDelete.aspx' target="selectedTodo"title="请确定要删除"><span>删除勾选</span></a></li>
            <%} %>
		</ul>
	</div>
	<div class="tableList" layoutH="142">
	<table class="list" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
			    <th width="10%">订单号</th>
				<th width="15%">商品名称</th>
                <th width="10%">申请时间</th>
                <th width="15%">申请类型</th>
                <th width="25%">申请备注</th>
                <th width="15%">状态</th>
				<th width="10%" align="center">操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="grid">
                <ItemTemplate>
			    <tr target="uid">
                    <td><input name="ids" value="<%#Eval("Id")%>" type="checkbox"/></td>
				    <td title="<%#Eval("Id")%>">
                    <a href="/SystemManage/Basics/Shop/Order/OrderDetail.aspx?no=<%# Eval("OrderNo")%>" target="navTab" title="订单详情" rel="OrderDetail"> <%# Eval("OrderNo")%>
                  </a>
                    </td>
                    <td><%# Eval("ProductName")%></td>
				    <td><%# Eval("RecordDate","{0:yyyy-MM-dd}")%></td>
                    <td><%# ParamKit.GetValue("OrderReturnType", Eval("ReturnType"), "&nbsp;")%></td>
                    <td><%# Eval("ReturnMemos")%></td>
				    <td>
				    <%# ParamKit.GetValue("OrderIsConfirmed", Eval("ConfirmStatus"), "&nbsp;")%>
				    <%# ParamKit.GetValue("ProcessStatus", Eval("ProcessStatus"), "&nbsp;")%>
				    <%# ParamKit.GetValue("OrderIsFinish", Eval("FinishStatus"), "&nbsp;")%>
				    <%# ParamKit.GetValue("OrderIsCancel", Eval("CancelStatus"), "&nbsp;")%></td>
				    <td align="center"> 
                         <% if (AuthUtil.CheckAuthorization("ORDER_RETURN_MAN", "VIEW_OWNER") || AuthUtil.CheckAuthorization("ORDER_RETURN_MAN", "VIEW_ALL"))
                            { %>
				        <a href="/SystemManage/Basics/Shop/OrderReturns/OrderReturnsDetail.aspx?id=<%# Eval("Id")%>&freshtabid=<%= _framePage.NavTabId %>" target="navTab" title="售后详情" rel="OrderReturnsDetail">查看</a>&nbsp;&nbsp;
				   <%} %>
                   <% if (AuthUtil.CheckAuthorization("ORDER_RETURN_MAN", "DELETE"))
                        { %>
<%--                        <a  href='/SystemManage/Basics/shop/orderReturns/OrderReturnsDelete.aspx?ids=<%# Eval("Id")%>' target="ajaxTodo" title="请确认删除退货信息">删除</a>--%>
		                <%} %>
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>
</div>
	
     <%= _framePage.GetPagerContentHtml()%>
</div>
</form>

